package picture2013.p1_6;

public class Main {

    public static void main(String[] args) {
        Picture p = new Picture(30, 20, '.');

        p.drawRect(1, 1, 4, 3, 'x');
        p.drawVerticalLine(4, 4, 10, '%');
        p.drawHorizontalLine(4, 4, 10, '*');

        p.drawPoint(15, 14, 'Q');
        System.out.println("This should be Q: " + p.getPoint(15, 14));

        p.print();

        System.out.println("picture p has size " + p.getWidth() + "x" + p.getHeight());

        //Проверим пункт 6
        Picture p2 = new Picture(5, 6, '!');
        p2.drawRect(1, 2, 3, 3, '?');
        p.drawPicture(14, 12, p2);
        p.print();
    }

}
